﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_BBS_GetReplayAttachment]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_BBS_GetReplayAttachment];
GO
CREATE PROCEDURE [dbo].[sproc_BBS_GetReplayAttachment]
@replayid int
/*--------------------------------------
功能：得到该回复的附件
参数：
    @replayid    回复id
---------------------------------------*/
AS
    SELECT * FROM UDS_BBS_Replay_Attachment WHERE replay_id=@replayid